﻿/*----------------------------------------------------------------

// 文件名：Member
// 文件功能描述：成员
//
// 创建标识：jinchuanliang 2018-07-14
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------*/
using SqlSugar;
using System;
using System.Collections.Generic;

namespace FamilyTree.Entity
{
    /// <summary>
    /// 成员
    /// [TB_Member]数据模型
    /// </summary>
    /// <author>jinchuanliang 2018-07-14</author> 
    [SugarTable("MemberInfo")]
    public class MemberEntity
    {
        /// <summary>
        /// 初始化默认值构造函数
        /// </summary>
        /// <author>jinchuanliang 2018-07-14</author>
        public MemberEntity()
        {
            MemberId = 0;
            MemberName = "";
            Sex = "";
            CardNumber = "";
            Phone = "";
            Birthday = DateTime.Now;
            FamilyInfoId = 0;
            Ranking = 0;
            PicUrl = "";
            Profile = "";
            DieTime = DateTime.Now;
            IsDelete = 0;
            ParentId = 0;
            Remarks = "";
        }

        #region [TB_Member]表字段属性


        /// <summary>
        /// 成员ID 
        /// </summary>       

        [SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int MemberId
        {
            set;
            get;
        }


        /// <summary>
        /// 姓名
        /// </summary>         
        public string MemberName
        {
            set;
            get;
        }


        /// <summary>
        /// 性别:F男,M女
        /// </summary>         
        public string Sex
        {
            set;
            get;
        }


        /// <summary>
        /// 身份证号
        /// </summary>         
        public string CardNumber
        {
            set;
            get;
        }


        /// <summary>
        /// 手机号
        /// </summary>         
        public string Phone
        {
            set;
            get;
        }


        /// <summary>
        /// 生辰
        /// </summary>         
        public DateTime Birthday
        {
            set;
            get;
        }


        /// <summary>
        /// 家族ID
        /// </summary>         
        public int FamilyInfoId
        {
            set;
            get;
        }


        /// <summary>
        /// 当前辈分排行
        /// </summary>         
        public int Ranking
        {
            set;
            get;
        }


        /// <summary>
        /// 图片一张
        /// </summary>         
        public string PicUrl
        {
            set;
            get;
        }


        /// <summary>
        /// 简介
        /// </summary>         
        public string Profile
        {
            set;
            get;
        }


        /// <summary>
        /// 殁时 卒于
        /// </summary>         
        public DateTime DieTime
        {
            set;
            get;
        }


        /// <summary>
        /// 是否删除
        /// </summary>         
        public int IsDelete
        {
            set;
            get;
        }
        /// <summary>
        /// 父ID
        /// </summary>
        public int ParentId { set; get; }
        /// <summary>
        /// 备注说明
        /// </summary>
        public string Remarks { set; get; }

        #endregion

        /// <summary>
        /// 代：第几代人
        /// </summary>
        public int GenerationNum { set; get; }

        /// <summary>
        /// 辈字
        /// </summary>
        public string GenerationName { set; get; }
        /// <summary>
        /// 关系
        /// </summary>
        public string RelationName { set; get; }

        [SugarColumn(IsIgnore = true)] // 忽略该字段
        public List<MemberEntity> children { set; get; }    
         
    }

   
}

